# -*- coding = utf-8 -*-
# @Time    : 2025/6/23 16:21
# @Author  : 杨明明
# @File    : serializers.py
# @Software: PyCharm
from rest_framework import serializers

from projects.models import Project


class ProjectSerializer(serializers.ModelSerializer):
    class Meta:
        model = Project
        fields = ['id', 'create_time', 'update_time', 'name', 'leader', 'info', 'bugs']  # noqa
        extra_kwargs = {
            'leader': {'required': True},
        }
